package com.example.mq.mqsever.core;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-08-20
 * Time: 17:57
 */
//表示队列和交换机的关联关系
public class Binding {
    private  String ExchangeName;
    private String queueName;
    //bindingkey就是之前讲的领红包出题画图问题
    private  String bindingKey;
    //binding依附于交换机和队列 ,如果这其中的任何一个都没有持久化,这里我的持久化就没用


    public String getExchangeName() {
        return ExchangeName;
    }

    public void setExchangeName(String exchangeName) {
        ExchangeName = exchangeName;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }
}
